#include "mainwindow.h"
#include <QApplication>
#include "client.h"


int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
#if 0
    QMediaPlayer *player = new QMediaPlayer;
    player->setMedia(QMediaContent(QUrl::fromLocalFile("./tts_sample.wav")));
    player->play();
#endif
    if(argc >= 2)
    {
        Client::get()->ip = argv[1];
    }
    Client::get()->init();

    MainWindow w;
    w.show();

    return a.exec();
}
